package com.tt.fashionWebSite.dao.jpa;

import com.tt.fashionWebSite.dao.MauSacDao;
import com.tt.fashionWebSite.domain.MauSac;
import com.tt.fashionWebSite.domain.ThongTinThanhVien;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("mauSac")
public class MauSacJpaDao extends GenericJpaDao<MauSac,String> implements MauSacDao {
    public MauSacJpaDao(){
        super(MauSac.class);
    }

    @Override
    public List<MauSac> getAllColor(){
        return getEntityManager().createNamedQuery(MauSac.GET_ALL_COLOR, MauSac.class).getResultList();
    }
}
